#ifndef INTERFACES_H
#define INTERFACES_H

#include <QVariantMap>
#include <QWidget>

class WidgetWithGdrData : public QWidget
{
    Q_OBJECT
public:
    WidgetWithGdrData(QWidget *parent = 0)
        : QWidget(parent)
    {

    }

    virtual void setGdrData(QVariantMap*) = 0;
    virtual QObject* chModel() = 0;
    virtual void refreshFromData(QObject*)
    {
        // DEFAULT IMPLEMENTATION
    }

    virtual void updateData(QObject*)
    {
        // DEFAULT IMPLEMENTATION
    }

    virtual void beginLoadFrom() {}
    virtual void endLoadFrom() {}
};

#endif // INTERFACES_H
